]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: Fix username reuse on reset
authorJoan Torres Lopez <joantolo@redhat.com>
Thu, 12 Feb 2026 15:38:04 +0000 (16:38 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 2 Aug 2026 16:51:24 +0000 (18:51 +0200)
The condition was checking for PROVIDE_USERNAME specifically, but
should also handle REUSE_USERNAME. Check for not DONT_PROVIDE_USERNAME
instead to correctly reuse the username when requested.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4306>
(cherry picked from commit 2cb0627a467f2057c28bda57b6858ef04a7ddb55)

js/ui/unlockDialog.js

index f5f31f5d4874a272cf4f9cdea79f23589c0d0eb1..971438a7cffbb24eaf4326116cff9b5a6b6935a3 100644 (file)
@@ -849,7 +849,7 @@ export const UnlockDialog = GObject.registerClass({
 
     _onReset(authPrompt, beginRequest) {
         let userName;
-        if (beginRequest === AuthPrompt.BeginRequestType.PROVIDE_USERNAME) {
+        if (beginRequest !== AuthPrompt.BeginRequestType.DONT_PROVIDE_USERNAME) {
             this._authPrompt.setUser(this._user);
             userName = this._userName;
         } else {